It is late so this is probably something really obvious but I am not seeing it. Can someone please help?
Here is the page in question:
html - http://www.itsyourplate.com/index2.php
css - http://www.itsyourplate.com/thin.css
As you can see from the file the menu is showing up vertically not horizontally. I copied the code directly from another site I have done and changed the bullets (I didn't want any) and the colors but I must have jacked the css up somehow.
Here is the other site that I have done this style of menu on before.
html - http://www.metrobelievers.com
css - http://www.metrobelievers.com/style.css
I have tried adding css tags like - #menu ul li {display: inline; }
but that hasn't worked...I'm really just out of options because I can't see what the issue is, I'm too close to it I guess.
Thank you in advance for any help.
7 5534
I can't find it yet but you have display:block scattered throughout the li and a of #menu which is probably causing the problem.
If I change the display: blocks to something else then the sub menus don't display as a block of items...I will look into the other thing you wrote about when I get back to the office
drhowarddrfine - thanks for the info, I have tried removing all of the display:block commands to no avail as well as removing the problematic #menu command.
The part that is frustrating is that I know this set of css commands works because I have it working on another site so I just have a typo or miscopy somewhere. Thank you for your help, please send any more suggestions that you have.
EDIT: after more investigation, the code that was copied in is intact, it is something on one of the parent objects that it is inheriting that is causing the problem. (I copied the code directly from the other site without modifications and it did the same thing).
Sorry for not replying. I'm out of town till Monday.
ok.. here you go
add this css menu part in your css page
Add this part on your css page.. -
-
-
/* this css for new menu*/
-
-
/*
-
menubar is the root UL and menubar ul applies to all the sub-menu ULs.
-
We set padding and margin to zero to eliminate all indentation, turn bullets off,
-
and set a font-family different from the global font-family declared for the
-
body element above. This sets font for just the menu. Do not add a font-size here.
-
*/
-
#menubar, #menubar ul {
-
padding: 0;
-
margin: 0;
-
list-style: none;
-
font-family: Tahoma, Arial;
-
font-weight: bold;
-
}
-
/*
-
Root-Level Links. Do not change the first two properties.
-
Adjust padding values to make the root links taller and to offset them
-
from the left and right edges of the link box. The border right creates a
-
separator between links. Font-size is set here and will apply to all menu levels.
-
Font color is set to light gray.
-
*/
-
#menubar a {
-
display: block;
-
text-decoration: none;
-
padding: 5px 10px 5px 10px;
-
border-right: 1px solid #333;
-
font-size: .85em;
-
color: white;
-
-
}
-
/*
-
Class assigned to those Root-Level links that have associated Sub-Menus.
-
The top and bottom padding assigned this element must be the same as
-
that assigned to the menubar a element. The right padding is increased
-
to accomodate the display of background image depicting a downward
-
pointing arrow.
-
*/
-
#menubar a.trigger {
-
padding: 5px 16px 5px 10px;
-
background-repeat: no-repeat;
-
background-position: right center;
-
-
-
}
-
/*
-
The Root-Level list items. Floating left allows
-
them to appear horizontally. Width is for IE5 Mac. The last rule in
-
this style sheet will set the width for this element to auto for all
-
other browsers - hiding it from IE5 Mac. The width is proportional.
-
As you add and edit root menu items, you will need to test this width
-
to ensure it is wide enough to accomodate all text.
-
*/
-
#menubar li {
-
float: left;
-
width: 9em;
-
-
}
-
/*
-
Sets width for Sub-Menu box and the List Items inside - in proportional em units.
-
This allows the sub-menu width to expand if users resize the text in their browsers.
-
*/
-
#menubar li ul, #menubar ul li {
-
width: 10em;
-
}
-
/*
-
The sub-menu links. We set color and turn off the right border, which
-
would otherwise be inherited from the root link rule. We set top and
-
bottom padding less than the root items and increas the left padding
-
to indent the sub-menu links a small amount in from the root links.
-
*/
-
#menubar ul li a {
-
color: #565656;
-
border-right: 0;
-
padding: 3px 12px 3px 16px;
-
background-color: #FFFFFF;
-
}
-
/*
-
Sub-Menu Unordered Lists describes each dropdown sub-menu grouping.
-
Positioned Absolutely to allow them to appear below their root trigger.
-
Set to display none to hide them until trigger is moused over.
-
Background Color must be set or problems will be encountered in MSIE.
-
Right and bottom borders are set to simulate a raised look.
-
A gradient background image is assigned.
-
*/
-
#menubar li ul {
-
position: absolute;
-
display: none;
-
background-color: #FFFFFF;
-
border-right: 1px solid #333333;
-
border-bottom: 1px solid #333333;
-
background-repeat: repeat-x;
-
-
}
-
/*
-
Changes the Text color and background color when the Root-Level
-
menu items are moused over. The second selector sets color and background
-
when Root-Level items are accessed with the keyboard tab key. The third
-
selector sets an active state to support keyboard access in MSIE. The fourth
-
selector is assigned to IE5 and IE6 Windows via the script.
-
Note that IE7 supports hover on elements other than links and so behaves
-
like Firefox, Opera, and Safari - making the menu operable even if JavaScript
-
is not enabled.
-
*/
-
#menubar li:hover a, #menubar a:focus,
-
#menubar a:active, #menubar li.p7hvr a {
-
color: #000000;
-
background-color: #cfbe8a;
-
}
-
/*
-
Set the Sub-Menu UL to be visible when its associated
-
Root-Level link is moused over. The second selector is
-
assigned to IE5 and IE6 via the script.
-
*/
-
#menubar li:hover ul, #menubar li.p7hvr ul {
-
display: block;
-
background-color: #cfbe8a;
-
-
}
-
/*
-
Sets the Text color of the Sub-Level links when the Root-Level
-
menu items are moused over. The second selector is
-
assigned to IE5 and IE6 via the script.
-
The color set should march the normal Sub-Level link color
-
in the rule: #menubar ul li a. The background color must be
-
transparent to allow the underlying gradient background on the UL
-
to show through.
-
*/
-
#menubar li:hover ul a, #menubar li.p7hvr ul a {
-
color: #000000;
-
background-color: transparent;
-
-
}
-
/*
-
The normal hover class for Sub-Level links. The Important directive
-
is required for older browsers. We set a background color, which shows
-
over the gradient background. We set text color to white.
-
*/
-
#menubar ul a:hover {
-
background-color: #606060!important;
-
color: #FFFFFF!important;
-
}
-
/* The single backslash \ character inside this comment
-
causes IE5 Mac to ignore the following rule, which allows other
-
browsers to render top-level menu items to their natural width.
-
Do not edit this rule in any way. */
-
#menubar li {width: auto;}
-
-
-
i have added the menu on this page just copy and add on this on your menu and replace with old code -
-
<div id="menutop" > <!-- this is your div already decleared -->
-
<div id="menuwrapper">
-
-
<ul id="menubar">
-
<li>
-
<a href="index2.php" class="transparent">Home</a>
-
</li>
-
<li><a href="">About T.Hi.N.</a>
-
<ul>
-
<li><a href="">Tracie Hittman</a></li>
-
<li><a href="">Press</a></li>
-
<li><a href="">My Philosophy</a></li>
-
<li><a href="">Events</a></li>
-
<li><a href="">Testimonials</a></li>
-
</ul>
-
</li>
-
<li><a href="">The 180 Diet</a>
-
<ul>
-
<li><a href="">The Principles</a></li>
-
<li><a href="">Get Balanced</a></li>
-
</ul>
-
</li>
-
<li><a href="" class="transparent">Services</a>
-
</li>
-
<li><a href="" class="transparent">Contact Us</a>
-
</li>
-
</ul>
-
</ul>
-
</div>
-
</div>
-
-
i have tested on your page should wrk alright
prabirchoudhury - Thank you so much, I will be trying this out either later today or tomorrow. You rock!!!
prabirchoudhury - this worked like a charm, thanks a lot.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Maria Gonzalez |
last post by:
Hello,
I would like to know if it is possible to create a Navigational Menu that
has all the Major Categories on top row, then when a mouse is over it, the
bottom row appears with sublinks but...
|
by: elad |
last post by:
Hi
The Menu doesn't work properly when I have 2 frame and the Menu popup
frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.
Here is the code...
|
by: Jsp |
last post by:
I created a vertically scrolling div. On initial rendering, Firefox
shows a horizontal scrollbar in this div, over the complete width.
Resizing the width of the window/viewport makes the horizontal...
|
by: Dave |
last post by:
My web site is not particularly theme-based, but it contains an Art Gallery
I'd like to display in a different perspective. I would like to horizontally
scroll it, rather than vertically - as if...
|
by: itzikkl |
last post by:
hello
i wanted to ask about the menu control in asp.net 2.0.
there is a property "Orientation" in the menu cotrol
which specifies the Orientation of the main-uppper-level menu items.
than the...
|
by: Adam |
last post by:
I have four roughly square DIVs, all the same height, which I need to
line up horizontally across the page. What would be the best way to do
this? At the moment I have a very botched solution where...
|
by: Haitashi |
last post by:
Hello everyone:
I have a CFMenu with the type set to horizontal. I'd like to have the sub-menu items open vertically. Is that possible?
Here is my code. I want the Portals sub-menu (Portal A,...
|
by: Jim |
last post by:
Hi,
I have two questions/problems pertaining to CSS horizontal dropdown
menus and am hoping that someone here can help me out.
(1)
I'm having a problem centering the menu. I picked up the...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |